Debian 10 Basic LAMP Install

10 Sep

Deb 10:

apt-get install qemu-guest-agent openssh-server wget
nano /etc/ssh/sshd_config

apt-get install apt-transport-https lsb-release ca-certificates

wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo “deb https://packages.sury.org/php/ $(lsb_release -sc) main” >> /etc/apt/sources.list
apt-get update

apt-get install php5.6-mysql php5.6-cli php5.6-mbstring
apt-get install apache2

apt-get install apt-get install libapache2-mod-php5.6 fail2ban

apt-get install mariadb-server
mysql_secure_installation

mysql -u root -p
Create a user that can use phpMyAdmin (instead of root):

CREATE USER ‘phpmyadmin’@’%’ IDENTIFIED BY ‘password’;
GRANT ALL PRIVILEGES ON *.* TO ‘phpmyadmin’@’%’ WITH GRANT OPTION;
quit;

nano /etc/mysql/my.cnf
sql_mode = “”

mod-security (apache security):
apt-get install libapache2-mod-security2 git

systemctl restart apache2
cp /etc/modsecurity/modsecurity.conf-recommended /etc/modsecurity/modsecurity.conf
nano /etc/modsecurity/modsecurity.conf
SecRuleEngine On
systemctl restart apache2

rm -rf /usr/share/modsecurity-crs
git clone https://github.com/SpiderLabs/owasp-modsecurity-crs.git /usr/share/modsecurity-crs
nano /etc/apache2/mods-enabled/security2.conf

cp /usr/share/modsecurity-crs/crs-setup.conf.example /usr/share/modsecurity-crs/crs-setup.conf

Add before
IncludeOptional “/usr/share/modsecurity-crs/*.conf
IncludeOptional “/usr/share/modsecurity-crs/rules/*.conf

a2enmod headers
systemctl restart apache2

# remove apache2 headers:
nano /etc/apache2/apache2.conf
add at the end:
ServerTokens Prod
ServerSignature Off

9 thoughts on “Debian 10 Basic LAMP Install

  1. Hey! Would you mind if I share your blog with my zynga group?
    There’s a lot of people that I think would really enjoy your content.
    Please let me know. Many thanks

  2. I just like the valuable info you supply for your articles.
    I’ll bookmark your weblog and check once more right here frequently.

    I am somewhat sure I will learn many new stuff right right here!
    Good luck for the next!

  3. Как накрутить подписчиков в Телеграм канале [url=https://vc.ru/services/2090534-nakrutka-podpischikov-v-tg-kanal-top-20-luchshikh-servisov-2025-goda]Как накрутить подписчиков в Телеграм канале[/url] — рейтинг платформ с реальными отзывами и результатами. Живые подписчики, автоматический запуск, доступные пакеты. Идеально для старта и масштабирования канала.

  4. накрутка подписчиков в телеграм тг [url=https://dtf.ru/id2920281/3890814-nakrutka-podpischikov-v-telegram-2025]накрутка подписчиков в телеграм тг[/url]

  5. Мы предлагаем оформление дипломов ВУЗов по всей Украине — с печатями, подписями, приложением и возможностью архивной записи (по запросу).
    Документ максимально приближен к оригиналу и проходит визуальную проверку.
    Мы гарантируем, что в случае проверки документа, подозрений не возникнет.

    – Конфиденциально
    – Доставка 3–7 дней
    – Любая специальность

    Уже более 4928 клиентов воспользовались услугой — теперь ваша очередь.

    [url=http://uadiplom10.ru/]Купить диплом с занесением[/url] — ответим быстро, без лишних формальностей.

  6. сервисы накрутки подписчиков в телеграм [url=https://dtf.ru/id2920281/3890814-nakrutka-podpischikov-v-telegram-2025]сервисы накрутки подписчиков в телеграм[/url]

  7. Накрутка подписчиков в Телеграм [url=https://dtf.ru/id2920281/3890814-nakrutka-podpischikov-v-telegram-2025]Накрутка подписчиков в Телеграм[/url]

Leave a Reply

Your email address will not be published.